﻿using System.Collections.Generic;
using ZQNB.BaseLib.Core.Models;

namespace ZQNB.BaseLib.Core.Services
{
    public class WidgetMetaService : IWidgetMetaService
    {
        private readonly CoreDataHelper _fileDbHelper;

        public WidgetMetaService(CoreDataHelper fileDbHelper)
        {
            _fileDbHelper = fileDbHelper;
        }

        public IList<WidgetMeta> GetWidgetMetas()
        {
            var widgetMetas = _fileDbHelper.Read<WidgetMeta>();
            return widgetMetas;
        }
    }
}